#!/bin/bash
FIFONAME=${1:-"/tmp/outfifo"}

mkfifo ${FIFONAME}  2> /dev/null 


echo "###################################"
echo "启动调试输出管道 /tmp/outfifo "
ls -l /tmp/outfifo 
echo "应用程序写:   echo test > /tmp/outfifo"
while [ 1 ];
do
    cat /tmp/outfifo
done